<!DOCTYPE html>

<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">

<title>class Svn - Rails Application Documentation</title>

<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
</script>

<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>


<body id="top" class="class">
<nav id="metadata">
  <nav id="home-section" class="section">
  <h3 class="section-header">
    <a href="./index.html">Home</a>
    <a href="./table_of_contents.html#classes">Classes</a>
    <a href="./table_of_contents.html#methods">Methods</a>
  </h3>
</nav>


  <nav id="search-section" class="section project-section" class="initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <h3 class="section-header">
      <input type="text" name="search" placeholder="Search" id="search-field"
             title="Type to search, Up and Down to navigate, Enter to load">
    </h3>
  </form>

  <ul id="search-results" class="initially-hidden"></ul>
</nav>


  <div id="file-metadata">
    <nav id="file-list-section" class="section">
  <h3 class="section-header">Defined In</h3>
  <ul>
    <li>app/soa/Svn.rb
  </ul>
</nav>

    
  </div>

  <div id="class-metadata">
    
    <nav id="parent-class-section" class="section">
  <h3 class="section-header">Parent</h3>
  
  <p class="link">Object
  
</nav>

    
    <!-- Method Quickref -->
<nav id="method-list-section" class="section">
  <h3 class="section-header">Methods</h3>

  <ul class="link-list">
    
    <li><a href="#method-c-new">::new</a>
    
    <li><a href="#method-i-commit">#commit</a>
    
    <li><a href="#method-i-isSvn-3F">#isSvn?</a>
    
    <li><a href="#method-i-isTag-3F">#isTag?</a>
    
    <li><a href="#method-i-newTag">#newTag</a>
    
    <li><a href="#method-i-projectPath">#projectPath</a>
    
    <li><a href="#method-i-root">#root</a>
    
    <li><a href="#method-i-status">#status</a>
    
    <li><a href="#method-i-tags">#tags</a>
    
    <li><a href="#method-i-to_s">#to_s</a>
    
    <li><a href="#method-i-tst">#tst</a>
    
  </ul>
</nav>

  </div>

  <div id="project-metadata">
    <nav id="fileindex-section" class="section project-section">
  <h3 class="section-header">Pages</h3>

  <ul>
  
    <li class="file"><a href="./doc/README_FOR_APP.html">README_FOR_APP</a>
  
  </ul>
</nav>

    <nav id="classindex-section" class="section project-section">
  <h3 class="section-header">Class and Module Index</h3>

  <ul class="link-list">
  
    <li><a href="./SOA.html">SOA</a>
  
    <li><a href="./SOA/APP.html">SOA::APP</a>
  
    <li><a href="./Activity.html">Activity</a>
  
    <li><a href="./ApplicationController.html">ApplicationController</a>
  
    <li><a href="./ApplicationHelper.html">ApplicationHelper</a>
  
    <li><a href="./Bpel.html">Bpel</a>
  
    <li><a href="./Bpmn.html">Bpmn</a>
  
    <li><a href="./Component.html">Component</a>
  
    <li><a href="./ComponentsController.html">ComponentsController</a>
  
    <li><a href="./ComponentsHelper.html">ComponentsHelper</a>
  
    <li><a href="./Composite.html">Composite</a>
  
    <li><a href="./CompositeGroup.html">CompositeGroup</a>
  
    <li><a href="./CompositeSOA.html">CompositeSOA</a>
  
    <li><a href="./CompositesController.html">CompositesController</a>
  
    <li><a href="./CompositesHelper.html">CompositesHelper</a>
  
    <li><a href="./HomeController.html">HomeController</a>
  
    <li><a href="./HomeHelper.html">HomeHelper</a>
  
    <li><a href="./Mailsend.html">Mailsend</a>
  
    <li><a href="./Pom.html">Pom</a>
  
    <li><a href="./Reference.html">Reference</a>
  
    <li><a href="./ReferencesController.html">ReferencesController</a>
  
    <li><a href="./ReferencesHelper.html">ReferencesHelper</a>
  
    <li><a href="./Report.html">Report</a>
  
    <li><a href="./ReportsController.html">ReportsController</a>
  
    <li><a href="./ReportsHelper.html">ReportsHelper</a>
  
    <li><a href="./Service.html">Service</a>
  
    <li><a href="./ServicesController.html">ServicesController</a>
  
    <li><a href="./ServicesHelper.html">ServicesHelper</a>
  
    <li><a href="./Svn.html">Svn</a>
  
    <li><a href="./Version.html">Version</a>
  
    <li><a href="./Xml.html">Xml</a>
  
  </ul>
</nav>

  </div>
</nav>

<div id="documentation">
  <h1 class="class">class Svn</h1>

  <div id="description" class="description">
    
  </div><!-- description -->

  
  
  
  <section id="5Buntitled-5D" class="documentation-section">
    

    

    
    <!-- Constants -->
    <section id="constants-list" class="section">
      <h3 class="section-header">Constants</h3>
      <dl>
      
        <dt id="NEW_MESSAGE">NEW_MESSAGE
        
        <dd class="description">
        
      
        <dt id="TAGS">TAGS
        
        <dd class="description">
        
      
        <dt id="TRUNK">TRUNK
        
        <dd class="description">
        
      
      </dl>
    </section>
    

    
    <!-- Attributes -->
    <section id="attribute-method-details" class="method-section section">
      <h3 class="section-header">Attributes</h3>

      
      <div id="attribute-i-info" class="method-detail">
        <div class="method-heading attribute-method-heading">
          <span class="method-name">info</span><span
            class="attribute-access-type">[RW]</span>
        </div>

        <div class="method-description">
        
        
        
        </div>
      </div>
      
      <div id="attribute-i-path" class="method-detail">
        <div class="method-heading attribute-method-heading">
          <span class="method-name">path</span><span
            class="attribute-access-type">[RW]</span>
        </div>

        <div class="method-description">
        
        
        
        </div>
      </div>
      
    </section><!-- attribute-method-details -->
    

    <!-- Methods -->
    
     <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
      <h3 class="section-header">Public Class Methods</h3>

    
      <div id="method-c-new" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">new</span><span
            class="method-args">(path = nil)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="new-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 10</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">path</span> = <span class="ruby-keyword">nil</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">path</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">!=</span> <span class="ruby-string">''</span>
    <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span>.<span class="ruby-identifier">to_s</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- new-source -->
          
        </div>

        

        
      </div><!-- new-method -->

    
    </section><!-- public-class-method-details -->
  
     <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
      <h3 class="section-header">Public Instance Methods</h3>

    
      <div id="method-i-commit" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">commit</span><span
            class="method-args">(message = NEW_MESSAGE,paths = projectPath+'/'+TRUNK)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="commit-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 55</span>
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">commit</span>(<span class="ruby-identifier">message</span> = <span class="ruby-constant">NEW_MESSAGE</span>,<span class="ruby-identifier">paths</span> = <span class="ruby-identifier">projectPath</span><span class="ruby-operator">+</span><span class="ruby-string">'/'</span><span class="ruby-operator">+</span><span class="ruby-constant">TRUNK</span>)
    <span class="ruby-identifier">message</span> = <span class="ruby-constant">NEW_MESSAGE</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">message</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">==</span> <span class="ruby-string">&quot;&quot;</span>
<span class="ruby-identifier">p</span>    <span class="ruby-node">&quot;svn ci #{paths} -m '#{message}'&quot;</span>
    <span class="ruby-node">%xsvn ci #{paths} -m '#{message}'`</span>
  <span class="ruby-keyword">end</span></pre>
          </div><!-- commit-source -->
          
        </div>

        

        
      </div><!-- commit-method -->

    
      <div id="method-i-isSvn-3F" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">isSvn?</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="isSvn-3F-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 16</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">isSvn?</span>
  <span class="ruby-identifier">info</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- isSvn-3F-source -->
          
        </div>

        

        
      </div><!-- isSvn-3F-method -->

    
      <div id="method-i-isTag-3F" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">isTag?</span><span
            class="method-args">(tag)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="isTag-3F-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 37</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">isTag?</span>(<span class="ruby-identifier">tag</span>)
  <span class="ruby-identifier">tags</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">tag</span>) <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- isTag-3F-source -->
          
        </div>

        

        
      </div><!-- isTag-3F-method -->

    
      <div id="method-i-newTag" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">newTag</span><span
            class="method-args">(tag, message = NEW_MESSAGE)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="newTag-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 41</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">newTag</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">message</span> = <span class="ruby-constant">NEW_MESSAGE</span>)
  <span class="ruby-identifier">tagPath</span> = <span class="ruby-node">&quot;#{root}/#{TAGS}/#{tag}&quot;</span>
  <span class="ruby-identifier">trunkPath</span> = <span class="ruby-node">&quot;#{root}/#{TRUNK}&quot;</span>
  <span class="ruby-node">%xsvn rm #{tagPath} -m '#{message}'`</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">isTag?</span>(<span class="ruby-identifier">tag</span>)
  <span class="ruby-node">%xsvn cp #{trunkPath} #{tagPath} -m '#{message}'`</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- newTag-source -->
          
        </div>

        

        
      </div><!-- newTag-method -->

    
      <div id="method-i-projectPath" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">projectPath</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="projectPath-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 29</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">projectPath</span>
  <span class="ruby-identifier">info</span>[<span class="ruby-string">&quot;Path&quot;</span>].<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;/&quot;</span><span class="ruby-operator">+</span><span class="ruby-constant">TRUNK</span>)[<span class="ruby-value">0</span>]
<span class="ruby-keyword">end</span></pre>
          </div><!-- projectPath-source -->
          
        </div>

        

        
      </div><!-- projectPath-method -->

    
      <div id="method-i-root" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">root</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          <p>TODO: Not only for trunk.</p>
          

          
          <div class="method-source-code" id="root-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 25</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">root</span>
  <span class="ruby-identifier">info</span>[<span class="ruby-string">&quot;URL&quot;</span>].<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;/&quot;</span><span class="ruby-operator">+</span><span class="ruby-constant">TRUNK</span>)[<span class="ruby-value">0</span>]
<span class="ruby-keyword">end</span></pre>
          </div><!-- root-source -->
          
        </div>

        

        
      </div><!-- root-method -->

    
      <div id="method-i-status" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">status</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="status-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 61</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">status</span>
  <span class="ruby-node">%xsvn st #{projectPath}`</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;\n&quot;</span>)
<span class="ruby-keyword">end</span></pre>
          </div><!-- status-source -->
          
        </div>

        

        
      </div><!-- status-method -->

    
      <div id="method-i-tags" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">tags</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="tags-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 33</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tags</span>
  <span class="ruby-node">%xsvn list #{root+&quot;/&quot;+TAGS}`</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;/\n&quot;</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">isSvn?</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- tags-source -->
          
        </div>

        

        
      </div><!-- tags-method -->

    
      <div id="method-i-to_s" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">to_s</span><span
            class="method-args">()</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="to_s-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 65</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
  <span class="ruby-identifier">info</span>.<span class="ruby-identifier">to_s</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- to_s-source -->
          
        </div>

        

        
      </div><!-- to_s-method -->

    
      <div id="method-i-tst" class="method-detail ">
        
        <div class="method-heading">
          <span class="method-name">tst</span><span
            class="method-args">(tag, message = NEW_MESSAGE)</span>
          <span class="method-click-advice">click to toggle source</span>
        </div>
        

        <div class="method-description">
          
          
          

          
          <div class="method-source-code" id="tst-source">
            <pre><span class="ruby-comment"># File app/soa/Svn.rb, line 48</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tst</span>(<span class="ruby-identifier">tag</span>, <span class="ruby-identifier">message</span> = <span class="ruby-constant">NEW_MESSAGE</span>)
  <span class="ruby-identifier">tagPath</span> = <span class="ruby-node">&quot;#{root}/#{TAGS}/#{tag}&quot;</span>
  <span class="ruby-identifier">trunkPath</span> = <span class="ruby-node">&quot;#{root}/#{TRUNK}&quot;</span>
  <span class="ruby-identifier">p</span> <span class="ruby-node">&quot;svn rm #{tagPath} -m '#{message}'&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">isTag?</span>(<span class="ruby-identifier">tag</span>)
  <span class="ruby-identifier">p</span> <span class="ruby-node">&quot;svn cp #{trunkPath} #{tagPath} -m '#{message}'&quot;</span>
<span class="ruby-keyword">end</span></pre>
          </div><!-- tst-source -->
          
        </div>

        

        
      </div><!-- tst-method -->

    
    </section><!-- public-instance-method-details -->
  
  </section><!-- 5Buntitled-5D -->

</div><!-- documentation -->


<footer id="validator-badges">
  <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
  <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.2.
  <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
</footer>

